projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55a4ac3
)
(coordinates_in_window): Fix returned y position when
author
Kim F. Storm
<storm@cua.dk>
Tue, 11 Oct 2005 15:07:07 +0000
(15:07 +0000)
committer
Kim F. Storm
<storm@cua.dk>
Tue, 11 Oct 2005 15:07:07 +0000
(15:07 +0000)
ON_SCROLL_BAR.
src/window.c
patch
|
blob
|
history
diff --git
a/src/window.c
b/src/window.c
index ff01b2c902c4b52c61eb46e3d571278ec2aaa4f1..17c8f52c2863c56cec71971527fd437bb71c2527 100644
(file)
--- a/
src/window.c
+++ b/
src/window.c
@@
-682,7
+682,10
@@
coordinates_in_window (w, x, y)
/* Outside any interesting column? */
if (*x < left_x || *x > right_x)
- return ON_SCROLL_BAR;
+ {
+ *y -= top_y;
+ return ON_SCROLL_BAR;
+ }
lmargin_width = window_box_width (w, LEFT_MARGIN_AREA);
rmargin_width = window_box_width (w, RIGHT_MARGIN_AREA);